AppLocalesStorageHelper

Helper class to manage storage of locales in app's persistent files.

Functions

Link copied to clipboard
open fun persistLocales(@NonNull context: @NonNull Context, @NonNull locales: @NonNull String)
Stores the provided locales in internal app file, using the application context.
Link copied to clipboard
@NonNull
open fun readLocales(@NonNull context: @NonNull Context): @NonNull String
Returns app locales after reading from storage, fetched using the application context.